<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app2">
        <button :disabled="status">状态按钮</button>
        <button @click="disabler">禁用</button>
        <button @click="active">启用</button>
        <p>{{5+20}}</p>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        const app = new Vue({
            el:"#app2",
            data:{
                massage:"你好",
                status:true
            },
            methods:{
                show(){
                    this.massage ="更改的数据"
                },
                active(){
                    this.status = false
                },
                disabler(){
                    this.status= true
                },
                fn(r,q){
                    return r+q
                }
            }
        })
    </script>
</body>
</html>